package com.fdd.api.model;

import java.io.Serializable;

/**
 * @author timel
 * @date 2023/5/10
 */
public class PrintDataDto implements Serializable {

    private static final long serialVersionUID = 3762037034770782480L;
    private String waybillPrinterData;
    private String templateId;
    private String printType;
    private String id;

    public String getWaybillPrinterData() {
        return waybillPrinterData;
    }

    public void setWaybillPrinterData(String waybillPrinterData) {
        this.waybillPrinterData = waybillPrinterData;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getPrintType() {
        return printType;
    }

    public void setPrintType(String printType) {
        this.printType = printType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {return true;}
        if (!(o instanceof PrintDataDto)){ return false;}

        PrintDataDto that = (PrintDataDto) o;

        if (waybillPrinterData != null ? !waybillPrinterData.equals(that.waybillPrinterData) : that.waybillPrinterData != null) {
            return false;
        }
        return templateId != null ? templateId.equals(that.templateId) : that.templateId == null;
    }

    @Override
    public int hashCode() {
        int result = waybillPrinterData != null ? waybillPrinterData.hashCode() : 0;
        result = 31 * result + (templateId != null ? templateId.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "PrintDataDto{" +
                "waybillPrinterData='" + waybillPrinterData + '\'' +
                ", templateId='" + templateId + '\'' +
                '}';
    }
}
